<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="com.sfd.entity.*" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'studentinfo.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
<body  bgcolor="#009edb">
	<%
		Student student=(Student)session.getAttribute("student");
	 %>
<form>
  <table width="328" height="364" border="1" align="center" >
    <tr align="center" bgcolor="#F3F3F3">
      <td height="54" colspan="3" bgcolor="#CCFFFF">个人信息</td>
    </tr>
    <tr>
      <td width="91" height="45" align="center" bgcolor="#EBEBEB">账号：</td>
      <td width="221" colspan="2" bgcolor="#EBEBEB"><%=student.getID() %></td>
    </tr>
    
    <tr>
      <td height="43" align="center" bgcolor="#EBEBEB"><p>姓名：</p></td>
      <td colspan="2" bgcolor="#EBEBEB"><%=student.getName() %></td>
    </tr>
    
    <tr>
      <td height="42" align="center" bgcolor="#EBEBEB">性别：</td>
      <td colspan="2" bgcolor="#EBEBEB"><%=student.getGender() %></td>
    </tr>
    <tr>
      <td height="40" align="center" bgcolor="#EBEBEB">年龄：</td>
      <td colspan="2" bgcolor="#EBEBEB"><%=student.getAge() %></td>
    </tr>
    <tr>
      <td height="40" align="center" bgcolor="#EBEBEB">班级：</td>
     <td colspan="2" bgcolor="#EBEBEB"><%=student.getClassID() %></td>
    </tr>
    <tr>
      <td height="40" align="center" bgcolor="#EBEBEB">专业：</td>
      <td colspan="2" bgcolor="#EBEBEB"><%=student.getDepartment() %></td>
    </tr>
    
   
  </table>

</form>
</body>
</html>
